<template>
  <div>
    <div class="header">
      <van-nav-bar title="修改密码" left-arrow :fixed="true" z-index="999">
        <template #left>
          <van-icon name="arrow-left" size="18" @click="$emit('Popupdown')"/>
        </template>
      </van-nav-bar>
    </div>

   <div class="chang_password">
        <van-form>
      <van-field
        v-model="oldPassword"
        name="旧密码"
        label="旧密码"
        placeholder="请填写旧密码"
        :rules="[{ required: true, message: '请填写旧密码' }]"
      />
      <van-field
        v-model="newPassword"
        type="password"
        name="新密码"
        label="新密码"
        placeholder="请填写新密码"
        :rules="[{ required: true, message: '请填写新密码' }]"
      />
      <div style="margin: 16px">
        <van-button round block type="info" native-type="submit"
          >提交</van-button
        >
      </div>
    </van-form>
   </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      oldPassword: "",
      newPassword: "",
    };
  },
  methods: {
  },
};
</script>

<style lang="less" scoped>
.header {
  .van-icon {
    color: #000;
  }
}

.chang_password{
    margin-top: 60px;
}
</style>
